<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" %>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>IM用户详细信息</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.5 -->
    <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="/dist/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="/dist/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="/dist/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="/dist/css/skins/_all-skins.min.css">
    <!-- iCheck -->
    <link rel="stylesheet" href="/plugins/iCheck/flat/blue.css">
    <!-- Morris chart -->
    <link rel="stylesheet" href="/plugins/morris/morris.css">
    <!-- jvectormap -->
    <link rel="stylesheet" href="/plugins/jvectormap/jquery-jvectormap-1.2.2.css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="/js/html5shiv.min.js"></script>
    <script src="/js/respond.min.js"></script>
    <![endif]-->
<body class="skin-blue sidebar-mini wysihtml5-supported">
<jsp:include page="header.jsp"/>
<jsp:include page="menu.jsp"/>


<div class="content-wrapper">
    <section class="content-header">
            <h1>
                IM用户详细信息
            </h1>
            <ol class="breadcrumb">
                <li><a href="${firstMenuUrl}"><i class="fa fa-dashboard"></i>${firstMenuName}</a></li>
                <li><a href="${secMenuUrl}"><i class="fa fa-dashboard"></i>${secMenuName}</a></li>
                <li class="active">IM用户详细信息</li>
            </ol>

    </section>

    <section class="content">

               <div class="box">
                   <div class="box-header">
                       <h3 class="box-title">
                        <form action="/cusUserDetail" method="POST"  onsubmit="javascript:return check();">
                        <div class="row">
                            <div class="col-xs-7">
                                用户id<input name="id" id="id" type="text" class="form-control"
                                           value="${param.id}">
                            </div>
                            <div class="col-xs-5">
                                &nbsp;
                                <button type="submit" class="btn btn-block btn-primary form-control">查询</button>
                            </div>
                        </div>
                         </form>
                       </h3>
                   </div>

              <div class="box box-info" id ="cusUserDetail">

                <c:if test="${cusUser != null}">
                <div class="form-horizontal">
                      <div class="box-body">
                           <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">用户id</label>
                                <div class="col-sm-10">
                                    <input type="text"  value="${cusUser.id}" class="form-control" readonly="readonly"  style="width:75%"
                                           id="inputEmail3">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">消息免打扰</label>
                                <div class="col-sm-10">
                                    <c:if test="${cusUser.mutenotofication == 0 || cusUser.mutenotofication == null}">
                                    <input type="text" value="关" class="form-control" readonly="readonly"  style="width:75%"
                                           id="inputPassword3">
                                    </c:if>
                                    <c:if test="${cusUser.mutenotofication == 1}">
                                    <input type="text" value="开" class="form-control" readonly="readonly"  style="width:75%"
                                           id="inputPassword3">
                                    </c:if>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">平台</label>

                                <div class="col-sm-10">
                                    <input type="text"  value="${cusUser.platform}" class="form-control" readonly="readonly"  style="width:75%"
                                           id="inputPassword3">
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">推送key</label>
                                <div class="col-sm-10">
                                    <input type="text"  value="${cusUser.pushKey}" class="form-control" readonly="readonly"  style="width:75%"
                                           id="inputPassword3">
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">黑名单列表</label>
                                 <div class="col-sm-10">
                                     <textarea rows="4" cols="100"  style="overflow-y: scroll" readonly="readonly">${cusUser.blacks}</textarea>
                                 </div>
                            </div>
                             <div class="form-group">
                                 <label for="inputPassword3" class="col-sm-2 control-label">特别关注列表</label>
                                  <div class="col-sm-10">
                                      <textarea rows="4" cols="100"  style="overflow-y: scroll" readonly="readonly">${cusUser.follows}</textarea>
                                  </div>
                             </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">自定义表情列表</label>
                                 <div class="col-sm-10">
                                     <textarea rows="4" cols="100"  style="overflow-y: scroll" readonly="readonly">${cusUser.emotions}</textarea>
                                 </div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">表情使用次数统计</label>
                                 <div class="col-sm-10">
                                     <textarea rows="4" cols="100"  style="overflow-y: scroll" readonly="readonly">${cusUser.emotionStat}</textarea>
                                 </div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">免打扰会话列表</label>
                                 <div class="col-sm-10">
                                     <textarea rows="4" cols="100"  style="overflow-y: scroll" readonly="readonly">${cusUser.muteNotofications}</textarea>
                                 </div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">置顶会话列表</label>
                                 <div class="col-sm-10">
                                     <textarea rows="4" cols="100"  style="overflow-y: scroll" readonly="readonly">${cusUser.sticks}</textarea>
                                 </div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">会话列表</label>
                                 <div class="col-sm-10">
                                     <textarea rows="4" cols="100"  style="overflow-y: scroll" readonly="readonly">${cusUser.conversations}</textarea>
                                 </div>
                            </div>
                     </div>
                 </div>
  </c:if>
            </div>

    </section>
</div>

   <script type="text/javascript">
        function check(form) {
            var id = $("#id").val();
            if (id == "" || id == null) {
                alert("请输入用户id!");
                return false;
            }
        }
 </script>

<!-- jQuery 2.1.4 -->
<script src="/plugins/jQuery/jQuery-2.1.4.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="/js/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
    $.widget.bridge('uibutton', $.ui.button);
</script>
<!-- Bootstrap 3.3.5 -->
<script src="/bootstrap/js/bootstrap.min.js"></script>
<!-- Sparkline -->
<script src="/plugins/sparkline/jquery.sparkline.min.js"></script>
<!-- jvectormap -->
<script src="/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<!-- jQuery Knob Chart -->
<script src="/plugins/knob/jquery.knob.js"></script>
<!-- daterangepicker -->
<script src="/js/moment.min.js"></script>
<!-- Slimscroll -->
<script src="/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="/plugins/fastclick/fastclick.min.js"></script>
<!-- AdminLTE App -->
<script src="/dist/js/app.min.js"></script>
</body>
</html>